<?php

namespace app\api\Service;

class DemoService
{
    // 获取个人信息
    public static function issueCoupon($data)
    {
        $user_ids = $data['user_ids'];
        $coupon_ids = $data['coupon_ids'];
        $result = issueCoupons($user_ids,$coupon_ids);
//        return $result;
        if($result){
            return ['code'=>1,'msg'=>'操作成功','data'=>''];
        }else{
            return ['code'=>0,'msg'=>'操作失败','data'=>''];
        }
    }
}